﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Admin/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Ovvio.Web.Areas.Admin.Models.ProductModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Delete Product [<%= Model.Name %>]
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Delete Product [<%= Model.Name %>]</h2>

    <h3>Are you sure you want to delete [<%= Model.Name %>]?</h3>
    <fieldset>
        <table>
        <tr>
        <td >
        <img src="<%= Url.Action("Image/" + Model.Id.ToString()) %>" alt="<%= Model.Name %>" width=100 height=100/>
        </td>
        <td>
          <table>
            <tr>
            <td>
            <div class="display-label">Name</div>
            </td>
            <td>
             <div class="display-field"><%= Html.Encode(Model.Name) %></div>
            </td>
            </tr>
            <tr>
            <td>
            <div class="display-label">Details</div>
            </td>
            <td>
             <div class="display-field"><%= Html.Encode(Model.Details) %></div>
            </td>
            </tr>
            <tr>
            <td>
              <div class="display-label">Price</div>
            </td>
            <td>
               <div class="display-field"><%= Html.Encode(String.Format("{0:F}", Model.Price)) %></div>
            </td>
            </tr>
            <tr>
            <td>
                 <div class="display-label">IsOnStock</div>
            </td>
            <td>
                <div class="display-field"><%= Html.Encode(Model.IsOnStock) %></div>
            </td>
            </tr>
            <tr>
            <td>
                  <div class="display-label">IsPublished</div>
            </td>
            <td>
                <div class="display-field"><%= Html.Encode(Model.IsPublished) %></div>
            </td>
            </tr>
          </table>
        </td>
        </tr>
        </table>
      
    </fieldset>
    <% using (Html.BeginForm()) { %>
        <p>
		    <input type="submit" value="Delete" /> |
		    <%= Html.ActionLink("Back to List", "Index") %>
        </p>
    <% } %>

</asp:Content>

